package com.utils;

//获取数组最大值的工具类
public class ArraysUtils {
    private ArraysUtils() {
    }

    public static int getMaxArray(int[] arr) {
        int max = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (max < arr[i]) {
                max = arr[i];
            }
        }
        return max;
    }
}
